package fr.inserm.u915.organifooyi.web;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collection;
import java.util.Locale;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletResponse;

public class HttpServletResponseWrapper
	implements HttpServletResponse
	{
	private HttpServletResponse _delegate;

	public HttpServletResponseWrapper(HttpServletResponse delegate)
		{
		this._delegate=delegate;
		}
	
	
	protected HttpServletResponse getDelegate()
		{
		return _delegate;	
		}
	
	public void addCookie(Cookie arg0) {
		getDelegate().addCookie(arg0);
	}

	public void addDateHeader(String arg0, long arg1) {
		getDelegate().addDateHeader(arg0, arg1);
	}

	public void addHeader(String arg0, String arg1) {
		getDelegate().addHeader(arg0, arg1);
	}

	public void addIntHeader(String arg0, int arg1) {
		getDelegate().addIntHeader(arg0, arg1);
	}

	public boolean containsHeader(String arg0) {
		return getDelegate().containsHeader(arg0);
	}

	public String encodeRedirectURL(String arg0) {
		return getDelegate().encodeRedirectURL(arg0);
	}

	@Deprecated
	public String encodeRedirectUrl(String arg0) {
		return getDelegate().encodeRedirectUrl(arg0);
	}

	public String encodeURL(String arg0) {
		return getDelegate().encodeURL(arg0);
	}

	@Deprecated
	public String encodeUrl(String arg0) {
		return getDelegate().encodeUrl(arg0);
	}

	public void flushBuffer() throws IOException {
		getDelegate().flushBuffer();
	}

	public int getBufferSize() {
		return getDelegate().getBufferSize();
	}

	public String getCharacterEncoding() {
		return getDelegate().getCharacterEncoding();
	}

	public String getContentType() {
		return getDelegate().getContentType();
	}

	public String getHeader(String arg0) {
		return getDelegate().getHeader(arg0);
	}

	public Collection<String> getHeaderNames() {
		return getDelegate().getHeaderNames();
	}

	public Collection<String> getHeaders(String arg0) {
		return getDelegate().getHeaders(arg0);
	}

	public Locale getLocale() {
		return getDelegate().getLocale();
	}

	public ServletOutputStream getOutputStream() throws IOException {
		return getDelegate().getOutputStream();
	}

	public int getStatus() {
		return getDelegate().getStatus();
	}

	public PrintWriter getWriter() throws IOException {
		return getDelegate().getWriter();
	}

	public boolean isCommitted() {
		return getDelegate().isCommitted();
	}

	public void reset() {
		getDelegate().reset();
	}

	public void resetBuffer() {
		getDelegate().resetBuffer();
	}

	public void sendError(int arg0, String arg1) throws IOException {
		getDelegate().sendError(arg0, arg1);
	}

	public void sendError(int arg0) throws IOException {
		getDelegate().sendError(arg0);
	}

	public void sendRedirect(String arg0) throws IOException {
		getDelegate().sendRedirect(arg0);
	}

	public void setBufferSize(int arg0) {
		getDelegate().setBufferSize(arg0);
	}

	public void setCharacterEncoding(String arg0) {
		getDelegate().setCharacterEncoding(arg0);
	}

	public void setContentLength(int arg0) {
		getDelegate().setContentLength(arg0);
	}

	public void setContentType(String arg0) {
		getDelegate().setContentType(arg0);
	}

	public void setDateHeader(String arg0, long arg1) {
		getDelegate().setDateHeader(arg0, arg1);
	}

	public void setHeader(String arg0, String arg1) {
		getDelegate().setHeader(arg0, arg1);
	}

	public void setIntHeader(String arg0, int arg1) {
		getDelegate().setIntHeader(arg0, arg1);
	}

	public void setLocale(Locale arg0) {
		getDelegate().setLocale(arg0);
	}

	@Deprecated
	public void setStatus(int arg0, String arg1) {
		getDelegate().setStatus(arg0, arg1);
	}

	public void setStatus(int arg0) {
		getDelegate().setStatus(arg0);
	}
	
	}
